<me:UIABMU x:Class="WPFExcelReport.TABMU1"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL"  
                     xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIABMU.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
    </me:UIABMU.Resources>
  
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <WrapPanel>
            <Button   Click="UnSelectCommand" Height="20" Margin="5,0,0,0" Width="20">
                <Button.Background>
                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Refresh.png" />
                </Button.Background>
            </Button>
        </WrapPanel>
        <DataGrid   Grid.Row="1"
                AutoGenerateColumns="False" 
                EnableRowVirtualization="False"   
                Name="dlgMaster"  
                IsReadOnly="True" 
                ItemsSource="{Binding Source={StaticResource vwMaster }}" 
                  HeadersVisibility="Column" 
                 CanUserReorderColumns="True" 
                CanUserResizeRows="True"  
                 RowDetailsVisibilityMode="VisibleWhenSelected" 
           >
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=ABPSOLLMENGE1,Converter={StaticResource d100}}" Header="{Binding Source={Localization:Translate Word=数量}}" Width="Auto"  />
                <DataGridTextColumn Binding="{Binding Path=ABAAUFKRS}" Header="" Width="Auto"  />
                <DataGridTextColumn Binding="{Binding Path=ABAAUFLFD,Converter={StaticResource pnum}}" Header="{Binding Source={Localization:Translate Word=生产单}}" Width="Auto"  />
                <DataGridTextColumn Binding="{Binding Path=ABAAUFPOS,Converter={StaticResource pnum}}" Header=" " Width="Auto"  />
                <DataGridTextColumn Binding="{Binding Path=ABARESMG,Converter={StaticResource d1000}}" Header="{Binding Source={Localization:Translate Word=预留}}" Width="Auto"  />
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</me:UIABMU>
